package com.ruoyi.web.controller.shop.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.BO.wechat.AuthedAppletBO;
import com.ruoyi.common.entity.DO.marketing.CouponDO;
import com.ruoyi.common.entity.DO.member.MemberCouponDO;
import com.ruoyi.common.entity.VO.CouponSearchVO;
import com.ruoyi.common.entity.VO.CouponVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IBackShopCouponMapper extends BaseMapper<CouponDO> {

    List<CouponVO> searchList(CouponSearchVO searchVO);

    CouponVO getInfoById(Long couponId);

    @Update("UPDATE coupon SET is_delete = 1 where id=#{id}")
    int remove(Long id);

    int multiInsert(List<MemberCouponDO> memberCouponDOList);

}
